<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html >
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=9" />
		<meta http-equiv="pragma" content="no-cache" />
		<title>图标列表</title>
		<%@ include file="../../common/Admin-list.jsp"%>  	 
		<script type="text/javascript" src="<%=basePath %>JS/jquery/jquery-1.7.1.min.js"></script>
		
		<style>
			body{overflow: auto;}
	        #middles img{padding:5px; border:solid 2px #fff} 	        
	        #middles a:hover img{border:solid 2px #999}
	    </style>
	    <script type="text/javascript">
	        function SetImg(url,size)
	        {
	        	artDialog.opener.document.getElementById('icon').value = url;
	        	artDialog.opener.document.getElementById('imgIcon').src = "<%=basePath %>pages/Admin/Images/Icon/"+size+"/"+url;
	        	artDialog.close(); // 关闭对话框
	        }
	    </script>
	    
	</head>
<body>
	<form id="form1">
    <div id="middles">    
       <span id="lblList">
       <c:if test="${data.size()>0}">	    	
	   		<c:forEach items="${data.filenames}" var="tf" varStatus="st">	    		
	   			<a href="#" onfocus="this.blur()"><img src="<%=basePath %>pages/Admin/Images/Icon/${data.fileSize}/${tf}" onclick="SetImg('${tf}','${data.fileSize}');" /></a>
          	</c:forEach>	    	           	
		</c:if>
       </span>
    </div>
    </form>
</body>
</html>